//
//  KaiJuFaPiaoSelectTypeCell.m
//  DistributorAB
//
//  Created by 李 on 2019/12/9.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "KaiJuFaPiaoSelectTypeCell.h"

@implementation KaiJuFaPiaoSelectTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.typeWordsLab.font = KFontPingFangSCRegular(16);
    self.tipLab.font = KFontPingFangSCRegular(10);
    self.buKaiFaPiaoBtn.titleLabel.font = KFontPingFangSCRegular(12);
    self.dianZiFaPiaoBtn.titleLabel.font = KFontPingFangSCRegular(12);
    self.buKaiFaPiaoBtn.selected = YES;
    self.dianZiFaPiaoBtn.selected = NO;
}
- (IBAction)buKaiFaPaioBtnClick:(UIButton *)sender {
    self.buKaiFaPiaoBtn.selected = YES;
    self.dianZiFaPiaoBtn.selected = NO;
    if (self.btnClickBlock) {
        self.btnClickBlock(0);
    }
}
- (IBAction)dianZiFaPiaoClick:(UIButton *)sender {
    self.buKaiFaPiaoBtn.selected = NO;
    self.dianZiFaPiaoBtn.selected = YES;
    if (self.btnClickBlock) {
        self.btnClickBlock(1);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
